<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">基础数据管理</h4>
</div>
<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/System/CodeMap/edit')}" id="editCodeMapForm" method="post">
        <input type="hidden" name="id" value="{$info.id?=$info.id}">
        <div class="box-body">

            <div class="form-group">
                <label>分组名称</label>
                <input type="text" name="title" class="form-control" id="title" required placeholder="分组名称" value="{$info.title?=$info.title}">
            </div>
            <div class="form-group">
                <label>分组</label>
                <input type="text" name="group_name" class="form-control" id="group_name" required placeholder="分组" value="{$info.group_name?=$info.group_name}">
            </div>



            <div class="form-group">
                <label>名称</label>
                <input type="text" name="m_name" class="form-control" id="m_name" required placeholder="名称" value="{$info.m_name?=$info.m_name}">
            </div>
            <div class="form-group">
                <label>数值</label>
                <input type="text" name="m_value" class="form-control" id="m_value" required placeholder="数值(数字英文)" value="{$info.m_value?=$info.m_value}">
            </div>
            <div class="form-group">
                <label>排序</label>
                <input type="text" name="sort" class="form-control" id="sort" placeholder="排序" value="{$info.sort?=$info.sort}">
            </div>

        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>

    </form>
</div>
<script>
    $(function() {
        ajax_form_submit("editCodeMapForm");
    });
</script>
<!-- /.box-body -->